package com.woniuxy.yoga.admin.model.form.adminaccount;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Positive;

@Data
@ApiModel("添加管理员账号参数对象")
public class AdminAccountAddForm {
    @ApiModelProperty("账号名")
    @NotBlank
    private String accountName;
    @ApiModelProperty("手机号")
    @Pattern(regexp = "^1[3456789]\\d{9}$", message = "手机号格式不正确")
    private String accountPhone;
    @ApiModelProperty("密码")
    @NotBlank
    private String accountPassword;
    @ApiModelProperty("角色id")
    private Integer roleId;

}
